// --------------------------------------------------
// 列表
// @Author: steven.wjx
// @Date:   2020-03-05 13:17:50
// --------------------------------------------------
.#{$ui-name}list-items {
	display: block;
	list-style: none;
	padding-left: 0;
	margin: 0;

	.#{$ui-name}list-item {
		position: relative;

		&:first-child {
			border-top-width: 0;
		}

		.#{$ui-name}list-item-right {
			position: absolute;
			top: 15px;
			right: 20px;
		}
	}

	&.#{$ui-name}list-inline {
		font-size: 0;

		.#{$ui-name}list-item {
			@include inline-block;
			padding: 0;
			margin-left: 10px;
			font-size: $font-size;

			&:first-child {
				margin-left: 0;
			}
		}
	}
}

.#{$ui-name}list {
	&.#{$ui-name}list-bordered {
		border: 1px solid $border-color;
	}

	.#{$ui-name}list-head {
		font-size: $font-size;
		font-weight: 600;
		padding: 15px 20px;
		border-bottom: 1px solid $border-color;
	}

	.#{$ui-name}list-items {
		.#{$ui-name}list-item {
			position: relative;
			padding: 15px 20px;
			border-top: 1px solid $border-color;

			&:first-child {
				border-top-width: 0;
			}
		}
	}

	.#{$ui-name}list-meta {
		position: relative;
		padding-left: 95px;
		min-height: 80px;
		font-size: $font-size;
		line-height: 1.56;

		&.#{$ui-name}list-meta-has-extra {
			padding-right: 120px;
		}

		.#{$ui-name}list-meta-avatar {
			position: absolute;
			top: 0;
			left: 0;
			@include size(80px);

			>img {
				border-radius: $border-radius/2;
			}
		}

		.#{$ui-name}list-meta-block {
			.#{$ui-name}list-meta-title {
				font-size: $font-size;
				margin-top: 0;
				margin-bottom: 4px;
			}

			.#{$ui-name}list-meta-desc {
				font-size: ceil($font-size/1.2);
				margin-top: 0;
				margin-bottom: 0;
			}
		}

		.#{$ui-name}list-meta-extra {
			position: absolute;
			top: 0;
			right: 0;
			height: 80px;
			line-height: 80px;
		}
	}

	.#{$ui-name}list-item-main {
		position: relative;
		padding-right: 210px;
		font-size: ceil($font-size/1.1);
		line-height: 20px;

		.#{$ui-name}list-meta {
			margin-bottom: 10px;
		}

		.#{$ui-name}list-item-action {
			list-style: none;
			margin-top: 15px;
			margin-bottom: 0;
			padding-left: 0;

			>li {
				position: relative;
				@include inline-block;
				padding: 0 10px;
				font-size: floor($font-size/1.2);
				color: $text-color-secondary;

				.ant-list-item-action-split {
					@include inline-block;
					position: absolute;
					top: 50%;
					right: 0;
					margin-top: -5px;
					height: 10px;
					width: 1px;
					background-color: $border-color;
				}
			}
		}

		.#{$ui-name}list-item-extra {
			position: absolute;
			top: 0;
			right: 0;
			width: 200px;

			>img {
				max-width: 100%;
				max-height: 100%;
				vertical-align: middle;
			}
		}
	}

	.#{$ui-name}list-foot {
		font-size: $font-size;
		padding: 12px 15px;
		border-top: 1px solid $border-color;
	}
}